﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Ylh.IDAL
{
   public interface ICustFollow
    {

        /// <summary>
        /// 增加一条数据
        /// </summary>
        int InsertFlowInfo(string ConStr, Ylh.Model.TbCustFollow model);
      
        /// <summary>
        /// 更新一条数据
        /// </summary>
         bool UpdateFlowInFo(string ConStr, Ylh.Model.TbCustFollow model);
        
       /// <summary>
       /// 获取客户的跟踪信息
       /// </summary>
       /// <param name="ConStr"></param>
       /// <param name="CustID">客户编号</param>
       /// <param name="StaffID">员工编号</param>
       /// <returns></returns>
         DataTable GetFlowData(string ConStr, string CustID, string StaffID);
        
        /// <summary>
        /// 删除一条数据
        /// </summary>
         bool Delete(string ConStr, int CustFollow);
    
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
         Ylh.Model.TbCustFollow GetModel(string ConStr, int CustFollow);


         /// <summary>
         /// 获取是否存在上门拜访的这种情况
         /// </summary>
         /// <param name="ConStr"></param>
         /// <param name="CustID">客户编号</param>
         /// <returns></returns>
         bool GetModelByMetting(string ConStr, string CustID);
     
    }
}
